<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <%@ page isELIgnored="false"%>
<title>Cost</title>
</head>
<body>
<a href="home.htm">Home</a>
<c:if test="${not empty totalCost}">
<h2>
Total Cost $ ${totalCost}
</h2>
<p><a href="discountedCost.htm?percent=20">Apply Discount 20%</a></p>
<c:if test="${not empty discountedCost}">
<h2>
You only need to Pay $ ${discountedCost}
</h2>
</c:if>
<a href="checkout.htm?validCard=true">Checkout with invalid Credit card</a>
<a href="checkout.htm?validCard=false">Checkout with Correct Credit card</a>
</c:if>

</body>
</html>